Learn R Programming

mvQuad (version 1.0-8)

plot (plot.NIGrid): plots an NIGrid-object

Description

Plots the grid points of an NIGrid-object

Usage

# S3 method for NIGrid
plot(x, plot.dimension = NULL, ...)

Arguments

x

a grid of type NIGrid

plot.dimension

vector of length 1, 2 or 3. with the dimensions to be plotted (see examples)

...

arguments passed to the default plot command

Examples

Run this code
myGrid <- createNIGrid(dim=4, type=c("GHe", "cNC1", "GLe", "oNC1"),
                       level=c(3,4,5,6))
plot(myGrid) ## dimension 1-min(3,dim(myGrid)) are plotted
## Free arranged plots
plot(myGrid, plot.dimension=c(4,2,1))
plot(myGrid, plot.dimension=c(1,2))
plot(myGrid, plot.dimension=c(3))

Run the code above in your browser using DataLab